const mongoUtil = require("../utils/mongo_util")

function deleteTV(TvId,collectionName, callback) {
    mongoUtil.getCollection(collectionName).then(collection => {
        collection.deleteMany({
            doubanId: {
                $in: TvId
            }
        }, function (err, res) {
            callback(err, res)
        });
    })
}
module.exports = {deleteTV}